package com.bwie.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: day0513-week3
 * @ClassName Option
 * @description:
 * @author: 段阳
 * @create: 2024-05-13 10:09
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Option {

    private Integer id;
    private String label;
    private List<Object> children;

    public Option(Integer id, String label) {
        this.id = id;
        this.label = label;
        this.children = new ArrayList<>();
    }

    public void addChild(Object obj){
        this.children.add(obj);
    }
}